/*
** xfunctions.c for  in /u/all/caille_c/cu/my_ls1
** 
** Made by carole cailleux
** Login   <caille_c@epitech.net>
** 
** Started on  Mon Dec 21 21:43:19 2009 carole cailleux
** Last update Fri Mar 12 18:07:43 2010 carole cailleux
*/

#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include "serv.h"

void		my_perror(char *str)
{
  my_putstr(str);
  exit(EXIT_FAILURE);
}

int		xkill(pid_t pid, int sig)
{
  int		a;

  a = kill(pid, sig);
  if (a == -1)
    my_perror("Kill failure.\n");
  return (a);
}

